/**
 * 导师数据模型
 */
module.exports = class Teacher extends require('./model') {
    /**
     * 获取导师列表
     */
    static getList() {
        return new Promise((resolve, reject) => {
            let sql = 'SELECT id,`tname`,`ttitle`,`other`,`tphone` FROM teacher ORDER BY `id` DESC'
            this.query(sql).then(results => {
                resolve(results)
            }).catch(err => {
                console.log(`获取导师列表失败：${err.message}`)
                reject(err)
            })
        })
    }
}